/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Lenovo
 * Date: 2025-03-18
 * Time: 18:12
 */

// 父类：Animal.java
class Animal{
    public String name;
    public int age;

    public void eat(){
        System.out.println(name + "正在吃饭");
    }
}

// Dog.Java 子类，继承父类Animal
class Dog extends Animal{
    void bark(){
        System.out.println(name + "汪汪汪~~~");
    }
}

// Cat.Java 子类，继承父类Animal
class Cat extends Animal{
    void mew(){
        System.out.println(name + "喵喵喵~~~");
    }
}

